package com.squid.dataCenter.service.datadictionary;

import com.squid.base.common.bean.PageReq;
import com.squid.base.common.bean.PageResp;
import com.squid.base.common.mapper.EasyService;
import com.squid.dataCenter.model.entity.DataDictionaryEntity;
import com.squid.dataCenter.model.req.datadictionary.DataDictionaryInsertReq;
import com.squid.dataCenter.model.req.datadictionary.DataDictionaryPageReq;
import com.squid.dataCenter.model.req.datadictionary.DataDictionaryUpdateReq;
import com.squid.dataCenter.model.resp.datadictionary.DataDictionaryPageResp;

/**
 * 数据字典服务
 *
 * @author jinhang1
 * @date 2024/06/27
 */
public interface DataDictionaryService extends EasyService<DataDictionaryEntity> {

    /**
     * 分页
     *
     * @param pageReq 页面请求
     * @return {@link PageResp }<{@link DataDictionaryPageResp }>
     */
    PageResp<DataDictionaryPageResp> paging(PageReq<DataDictionaryPageReq> pageReq);


    /**
     * 添加
     *
     * @param req 要求事情
     */
    void add(DataDictionaryInsertReq req);

    /**
     * 更新
     *
     * @param req 要求事情
     */
    void update(DataDictionaryUpdateReq req);

    /**
     * 删除
     *
     * @param id id
     */
    void delete(Long id);
}
